//
//  DeclineUp.m
//  Tour
//
//  Created by dllo on 15/10/22.
//  Copyright (c) 2015年 蓝鸥科技. All rights reserved.
//

#import "DeclineUp.h"

@implementation DeclineUp
- (void)setValue:(id)value forUndefinedKey:(NSString *)key{
    
}
//@property (nonatomic, copy)NSString *url;
//@property (nonatomic, copy)NSString *photo;
//@property (nonatomic, copy)NSString *title;
//@property (nonatomic, copy)NSString *username;
//@property (nonatomic, copy)NSString *replys;
////@property (nonatomic, copy)NSString *title;
//@property (nonatomic, retain)NSNumber *views;
//@property (nonatomic, retain)NSString *view_url;


- (void)encodeWithCoder:(NSCoder *)aCoder{
    
    //对数据进行编码操作
    //把需要归档的数据进行编码操作,不需要的不用;
    [aCoder encodeObject:self.url forKey:@"url"];
    [aCoder encodeObject:self.photo forKey:@"photo"];
//    [aCoder encodeObject:self.title forKey:@"title"];
    [aCoder encodeObject:self.views forKey:@"views"];
    [aCoder encodeObject:self.view_url forKey:@"view_url"];
    [aCoder encodeObject:self.replys forKey:@"replys"];
    [aCoder encodeObject:self.username forKey:@"username"];
    [aCoder encodeObject:self.title forKey:@"title"];
    
    
    
    
}
- (id)initWithCoder:(NSCoder *)aDecoder{
    self = [super init];
    if (self) {
        //解码的操作
        //把解码之后得知赋给属性
        self.url = [aDecoder decodeObjectForKey:@"url"];
        self.photo = [aDecoder decodeObjectForKey:@"photo"];
        self.views = [aDecoder decodeObjectForKey:@"views"];
        self.view_url = [aDecoder decodeObjectForKey:@"view_url"];
        self.replys = [aDecoder decodeObjectForKey:@"replys"];
        self.username = [aDecoder decodeObjectForKey:@"username"];
        self.title = [aDecoder decodeObjectForKey:@"title"];

        
    }
    return self;
}


@end
